<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div>我是html中的内容1</div>
		<script type="text/javascript" src="https://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
		<script type="text/javascript">
			// $.ajax({
			// 	url:'/user/getUserInfo',
			// 	data:{
			// 		userid:1
			// 	},
			// 	success(res){
			// 		console.log(res)
			// 	}
			// })
			const login = () => {
				$.ajax({
					url: 'https://zhangtf.mynatapp.cc/sys/login',
					type: 'POST',
					data: JSON.stringify({ username: "admin", password: 'admin1234' }),
					beforeSend: function(request) {
						request.setRequestHeader("Content-Type", "application/json");
					},
					success(res) {
						console.log(res)
					}
				})
			}
			login();
		</script>
	</body>
</html>
